package com.pz.cloud.framework.business.workflow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 流程节点附加字段
 * @author mazezhan
 */
@Data
@TableName(value = "act_task_node_field")
@ApiModel(value = "act_task_node_field对象", description = "流程任务节点属性")
public class TaskNodeField {

    @ApiModelProperty(value = "id",required = true)
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 工作流任务定义key
     */
    @ApiModelProperty(value = "任务key",required = true)
    private String taskKey;
    /**
     * 节点名称
     */
    @ApiModelProperty(value = "字段名",required = true)
    private String fieldName;
    @ApiModelProperty(value = "字段标题，比如“审批金额”",required = true)
    private String fieldTitle;
    @ApiModelProperty(value = "字段类型，string,int,double,date,radio,checkbox,select",required = true)
    private String fieldType;
    @ApiModelProperty(value = "字段数据json，当fieldType为radio,select,checkbox才需要设值，比如{'通过':'1','不通过':'0'}")
    private String fieldData;
}
